<include file="Public:header" />
<form id="info_form" action="{:U('HousePicture/edit')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">修改图片</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
                        <tr>
                            <th>所属楼盘 :</th>
                            <td>
                                <span id="housename">{$house.title}</span>
                            </td>
                        </tr>
                    <tr>
                        <th width="120">所属栏目 :</th>
                        <td>
                            <select class="J_cate_select mr10" data-pid="0" data-menuid="5" data-uri="{:U('HousePicture/ajaxGetchilds')}" onchange="setTypeId(this);" data-selected="{$selected_ids}"></select>
                            <input type="hidden" name="cate_id" id="J_cate_id" value="{$info.cate_id}" />
                        </td>
                    </tr>
                    <tr>
                        <th width="120">图片名称 :</th>
                        <td>

                            <input type="text" name="title" id="title" value="{$info.title}" class="input-text" size="30">
                        </td>
                    </tr>
		            <tr>
						<th>选择图片:</th>
						<td>
					<notempty name="info['img']">
					<img src="{$info.img}" width="100" height="100"/><br /></notempty>
                        <input type="file" name="img" class="input-text"  style="width:200px;" />
                        </td>
		 			</tr>

					<tr>
						<th>{:L('publish')} :</th>
		 				<td>
		                	<label><input type="radio" name="status" class="radio_style" value="1" <if condition="$info.status eq '1'">checked="checked"</if>> {:L('yes')}</label>&nbsp;&nbsp;
							<label><input type="radio" name="status" class="radio_style" value="0" <if condition="$info.status eq '0'">checked="checked"</if>> {:L('no')}</label>
						</td>
					</tr>
				</table>
			</div>
        </div>
		<div class="mt10"><input type="submit" value="{:L('submit')}" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
<input type="hidden" name="menuid"  value="{$menuid}"/>
<input type="hidden" name="id" id="id" value="{$info.id}" />
</form>
<include file="Public:footer" />
<script>
    $('.J_cate_select').cate_select({top_option:'请选择',field:'J_cate_id'});
</script>
<js file="__JS__/uploadImg.js" charset="utf-8" />
</body>
</html>